﻿using EMall.Application;

namespace EMall.OrderService.Orders
{
    public class CreateOrderDto : EntityDto
    {
        public int BuyerId { get; set; }
        public string BuyerName { get; set; }
        public string Province { get; set; }
        public string City { get; set; }
        public string Country { get; set; }
        public string Street { get; set; }
        public string Detail { get; set; }
        public List<CreateOrderItemDto> OrderItems { get; set; }
        public CreateOrderDto()
        {
            OrderItems = new List<CreateOrderItemDto>();
        }
    }
    public class CreateOrderItemDto
    {
        public int ProductId { get; set; }
        public string ProductName { get; set; }
        public decimal UnitPrice { get; set; }
        public int Quantity { get; set; }
    }
}
